	var operArr_btn = {
			'detail':'<a id="detail" href="#" class="btn btn-outline-primary btn-sm">查看</a>',
			'edit':'<a id="edit" href="#" class="btn btn-outline-primary btn-sm">编辑</a>',
			'del':'<button id="del" type="button" class="btn btn-outline-danger btn-sm">删除</button>',
			'add':'',
			'input_send_massage':'<button id="input_send_massage" type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target=".j-open-insert-form">录入物流信息</button>',
			'reset_pwd':'<button id="reset_pwd" type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target=".j-open-set-password">重置密码</button>'
	}
		
	var operArr = {
			'menu':operArr_btn['edit']+operArr_btn['del'],
			'order':operArr_btn['detail']+operArr_btn['input_send_massage'],
			'user':operArr_btn['edit']+operArr_btn['del']+operArr_btn['reset_pwd'],
			'':''
				}
	
	function listMenu(data,type){
		var $body = $(".table tbody");
		var html = "";
		var $head_th = $(".table thead th");
		var th_ids = new Array();
		for(var i = 1;i<$head_th.length-1;i++){
			th_ids[i-1]=($head_th.get(i).getElementsByTagName("div"))[0].getAttribute("id");
		}
		//行循环
		$.each(data,function(key,val){	
			html += '<tr><td><div class="cell"><input type="checkbox"></div></td>';
			//列循环
			for(var i =0;i<th_ids.length;i++){
				html +='<td><div class="cell" id="'+th_ids[0]+'">'+val[th_ids[i]]+'</div></td>'
			}
			html += '<td><div class="cell">'+
							operArr[type]+
							'</div></td>'+
					'</tr>';
			
		});
		$body.append(html);
	}